#pragma once

#define SYMBOL_NAME_LEN (64 - sizeof(unsigned long))
struct sym_info
{
    unsigned long crc;
    char name[SYMBOL_NAME_LEN];
};

struct symvers_info
{
    unsigned int sym_count;
    unsigned int symgpl_count;
    struct sym_info *list;
};

//path : full path of vmlinux
extern int symvers_init(const char *path);

extern const struct symvers_info *symvers_get_verinfo_list(void);

extern void symvers_uninit(void);
